page {
	-webkit-overflow-scrolling: touch; //ios滑动不流畅
	background: #f6f7fb;
	font-size: 28rpx;
	word-break: break-all; //英文文本不换行
	color: #333333;
	box-sizing: border-box;
}
input{
	font-size: 28rpx;
}
img{
	display: block
}
image {
	display: block;
}
button::after {
	border: none;
}

view,
scroll-view,
swiper,
button,
input,
textarea,
label,
navigator,
image {
	box-sizing: border-box;
}
textarea {
	width: auto;
}
radio {
	transform: scale(0.8);
}
// 去除button的所有默认样式，让其表现跟普通的view、text元素一样
.app-mp-contact-btn{
	padding: 0;
	background-color: transparent;
	/* #ifndef APP-PLUS */
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	/* #endif */
	/* #ifdef APP-NVUE */
	border-width: 0;
	/* #endif */
}

// 字体
.c-primary {
	color: var(--color-primary);
}
.c-regular {
	color: $uni-text-color;
}
.c-secondary {
	color: $uni-text-color;
}
.c-placeholder {
	color: $uni-text-color;
}
.c-white {
	color: $uni-text-color-inverse;
}
.c-red {
	color: $uni-color-error;
}
.c-black {
	color: $uni-text-color;
}
.c-35 {
	color: #353535;
}
.c-34 {
	color: #343434;
}
.c-333 {
	color: #333333;
}
.c-666 {
	color: #666;
}
.c-999 {
	color: #999999;
}

.w-500 {
	font-weight: 500;
}
.w-600 {
	font-weight: 600;
}
.font-w-600 {
	font-weight: 600;
}
.font-w-500 {
	font-weight: 500;
}
.font-w-300 {
	font-weight: 300;
}
.font-w-400 {
	font-weight: 400;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}
// 背景颜色
.bg-primary {
	background-color: var(--color-primary) !important;
}
.bg-white {
	background-color: $uni-bg-color;
}
.bg-gray {
	background-color: rgb(225,225,225);
}
// flex
.flex{
  display: flex;
}
.flex-row-center{
	justify-content: center;
}
.flex-col-center{
	align-items: center;
}
.flex-end{
	justify-content: flex-end;
}
.flex-col-end{
	align-items: flex-end;
}
.flex-column{
	flex-direction: column;
}

.flex-row{
	flex-direction: row;
}
.align-initial {
	align-items: initial !important;
}
.align-stretch {
	align-items: stretch !important;
	/*flex-wrap布局下使每一列内元素高度保持一致*/
}
.justify-between {
	justify-content: space-between;
}
.justify-around {
	justify-content: space-around;
}
.justify-center {
	justify-content: center;
}
.justify-end {
	justify-content: flex-end;
}
.flex-col {
	flex-direction: column !important;
	/* flex单行 */
}
.flex-wrap {
	flex-wrap: wrap;
}
.flex-1 {
	flex: 1;
}
.flex-2 {
	flex: 0 0 50%;
}
.flex-3 {
	flex: 0 0 33.333%;
}
.flex-4 {
	flex: 0 0 25%;
}
// 禁用的表单组件样式
.is-ok {
	opacity: 0.5;
}

// 升级uView2.x版本后被去除的内置样式
// 定位
.u-rela {
	position: relative;
}
.u-abso {
	position: absolute;
}
// 弹窗
.popup-bg {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 100;
}
.popup-box {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #ffffff;
}

.ios-btm {
	height: constant(safe-area-inset-bottom);
	/* 兼容 iOS < 11.2 */
	height: env(safe-area-inset-bottom);
	/* 兼容 iOS >= 11.2 */
}
// 自营标签
.self-icon {
	width: 70rpx;
	padding: 4rpx 0;
	border-radius: 6rpx;
	background: var(--gradient-primary);
	text-align: center;
	font-size: 22rpx;
	color: #fff;
}

.border-white-bottom {
	border-bottom: 1px solid #DFDFDF;
}


// ==============================================================================
.m-w-30{
  min-width: 30rpx;
}
.m-w-170{
  min-width: 170rpx;
}
.m-w-40{
  min-width: 40rpx;
}
.max-w-60{
  max-width: 60%;
}
.w-100{
  width: 100%;
}
.w-94{
  width: 94%;
}
.w-80{
  width: 80%;
}
.w-70{
  width: 70%;
}
.w-60{
  width: 60%;
}
.w-50{
  width: 50%;
}
.w-48{
  width: 48%;
}
.w-40{
  width: 40%;
}
.w-30{
  width: 30%;
}
.w-25{
	width: 25%;
}
.w-20{
	width: 20%;
}
.h-50{
  height: 50%;
}
.h-100{
  height: 100%;
}

@for $i from 1 to 200 {
	.m-l-#{$i} {
		margin-left: $i + rpx ;
	}
	.m-#{$i} {
		margin: $i + rpx ;
	}
	.m-r-#{$i} {
		margin-right: $i + rpx ;
	}
	.m-t-#{$i} {
		margin-top: $i + rpx ;
	}
	.m-b-#{$i} {
		margin-bottom: $i + rpx ;
	}
	.p-l-#{$i} {
		padding-left: $i + rpx ;
	}
	.p-r-#{$i} {
		padding-right: $i + rpx ;
	}
	.p-t-#{$i} {
		padding-top: $i + rpx ;
	}
	.p-b-#{$i} {
		padding-bottom: $i + rpx ;
	}
    .p-#{$i}{
        padding: $i + rpx;
    }
	.b-r-#{$i} {
		border-radius: $i + rpx ;
	}
	.font-#{$i} {
		font-size: $i + rpx ;
	}
    .line-h-#{$i}{
        line-height: $i + rpx;
    }
}
.border-box{
  box-sizing: border-box;
}
.position-r{
  position: relative;
}
.position-a{
  position: absolute;
}
.position-f{
  position: fixed;
}
.text-left{
  text-align: left;
}
.text-underline {
  text-decoration-line: line-through;
  text-decoration-style: solid; /* 可以是 'solid', 'double', 'dotted', 'dashed' 等 */
}
.color-r{
  color: #FF0000;
}
.color-b{
  color: #000000;
}
.color-2{
  color: #222222;
}
.color-3{
  color: #333333;
}
.color-w{
  color: #ffffff;
}
.color-g{
  color: #b3b3b3;
}
.color-c{
	color: #cfcfcf;
}
.color-green{
	color: #03bf7d;
}
.font-b{
  font-weight: bold;
}
.font-light{
	font-weight: lighter;
}
.bg-red{
  background-color: #ff0000;
}
.bg-red1{
  background-color: #e60000;
}
.bg-g{
  background-color: #f9f9f9;
}
.bg-f2{
  background-color: #f2f2f2;
}
.cursor{
  cursor: pointer;
}
.no-select{
  user-select: none;
}
.border-ccc{
	border-top: 2rpx solid rgba(204,204,204,0.3);
}
.border-c{
	border: 2rpx solid rgba(204,204,204, 1);
}
.border-primary{
	border: 2rpx solid var(--color-primary);
}
.border-white{
	border: 2rpx solid #fff;
}
.border-r{
	border: 2rpx solid #e60000;
}
.noUse{
	text-decoration: line-through;
}
.text-overflow{
	width: 100rpx;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.inline-b{
	display: inline-block;
}
.inline{
	display: inline;
}
.defaultA {
	text-decoration: none; /* 去除默认的下划线 */
	outline: none;	/* 去除旧版浏览器的点击后的外虚线框 */
	color: #000;	/* 去除默认的颜色和点击后变化的颜色 */
}
.float-r{
	float: right;
}
.b-r-c{
	border-radius: 50%;
}
.text-overflow-one{
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.overflow-hidden{
	overflow: hidden;
}
.z-999{
  z-index: 999;
}
.r-16{
	border-radius: 16rpx;
}
.fix-bottom{
	position: fixed;
	width: 100%;
	bottom: 0;
	left: 0;
	padding: 20rpx;
	background: #ffffff;
	padding-bottom: calc(20rpx + constant(safe-area-inset-bottom));
	padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
}
.fix-box{
	padding-bottom: calc(150rpx + constant(safe-area-inset-bottom));
	padding-bottom: calc(150rpx + env(safe-area-inset-bottom));
}
.tab-fix{
	padding-top: 112rpx;
}